import { axios } from '@/utils/request'

/**
 * api接口列表
 */
const api = {
  index: '/book/invite',
  makeInvite: '/book/invite/make',
  batch:'/book/inviteBatch'
}

/**
 * 列表记录
 */
export function list (params) {
  return axios({
    url: api.index,
    method: 'get',
    params
  })
}

export function batchList (params) {
  return axios({
    url: api.batch,
    method: 'get',
    params
  })
}
/**
 * 列表记录
 */
export function create (data) {
  return axios({
    url: api.makeInvite,
    method: 'post',
    data
  })
}
